package networking.messages.createMessages;

import logic.common.team.Fraction;

import com.captiveimagination.jgn.synchronization.message.SynchronizeCreateMessage;

public class ShipCreateMessage extends SynchronizeCreateMessage {
	
	private ShipType type;
	private Fraction fraction;
	private int shipIndex;
	
	public ShipCreateMessage() {
		super();
	}
	
	public ShipCreateMessage(Fraction fraction, ShipType type, int shipIndex, short playerID) {
		this(fraction, type, shipIndex);
		setPlayerId(playerID);
	}
	
	public ShipCreateMessage(Fraction fraction, ShipType type, int shipIndex) {
		this();
		this.fraction = fraction;
		this.type = type;
		this.shipIndex = shipIndex;
	}
	
	public Fraction getFraction() { return fraction; }
	
	public ShipType getType() { return type; }
	
	public int getShipID() { return shipIndex; }
}